<include file="../header" />
<body class="J_scroll_fixed">
    <script>

        $(document).ready(function() {

           
            
        });

    </script>
<form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('publicCourse/viewVip')}">
    <div class="search_type cc mb10">
        <input type="hidden" name="id" value="{$id}"/>
        <div class="mb10">
        <span class="mr20">
            手机号：
        <input type="text" name="mobile" class="input" value="{$mobile}" />
        会员姓名：
        <input type="text" name="vipName" class="input" value="{$vipName}" />
            <button class="btn btn-primary">搜索</button>
            <a class="btn" href="{:U('publicCourse/viewVip')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">

    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>创建时间</th>
            <th>会员姓名</th>
            <th>手机号</th>
            <th>性别</th>
            <th>身份证号</th>
            <th>课程状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.join_id}</td>
                <td>{$vo.create_time}</td>
                <td>{$vo.vip_name}</td>
                <td>{$vo.mobile}</td>
                <td>
                    {:getEnumString($gender, $vo['gender'])}
                </td>
                <td>{$vo.idcard_number}</td>
                <td>
                    {:getEnumString($status, $vo['status'])}
                </td>
                <td>
                <if condition="$vo['status'] eq $status['WAITING']">
                    <a href='{:U("publicCourse/checkIn",array("id"=>$vo["join_id"]))}' class="btn">签到</a>
                </if>
                    
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>